#include "User.h"

User::User()
{
    //ctor
    int tmp[3]={0};
    m_mark.insert(make_pair('A',tmp));
    m_mark.insert(make_pair('N',tmp));
    m_mark.insert(make_pair('G',tmp));
}

void User::Read(ifstream *ifs)
{
    (*ifs)>>m_name;
}

void User::SaveToRecord(int par_mark,int par_level,char par_shape)
{
    m_mark[par_shape][par_level-1]=par_mark;
}

bool User::Islogin(string par_str)
{
    if (par_str == this->m_name)
        return true;
    else
        return false;
}

User::~User()
{
    //dtor
}
